package drds.data_propagate.task;

import drds.data_propagate.task.model.TaskConfiguration;


public class TaskGeneratorImpl implements TaskGenerator {

    private TaskManager taskManager;

    public Task init(String destination) {
        TaskConfiguration taskConfiguration = taskManager.findTask(destination);
        return new TaskImpl(taskConfiguration);
    }

    public void setTaskManager(TaskManager taskManager) {
        this.taskManager = taskManager;
    }

}
